package com.waypolice.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class UpmsDictionary implements Serializable{
	private Integer pkId;

	private String code;

	private String description;

	private String fatherCode;

	private String fatherDesc;

	private String remarks;

	private Date ctime;

	private Date mtime;

	private String str1;

	private String str2;

	private String str3;

	private String str4;

	private String str5;

	public Integer getPkId() {
		return pkId;
	}

	public void setPkId(Integer pkId) {
		this.pkId = pkId;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code == null ? null : code.trim();
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description == null ? null : description.trim();
	}

	public String getFatherCode() {
		return fatherCode;
	}

	public void setFatherCode(String fatherCode) {
		this.fatherCode = fatherCode == null ? null : fatherCode.trim();
	}

	public String getFatherDesc() {
		return fatherDesc;
	}

	public void setFatherDesc(String fatherDesc) {
		this.fatherDesc = fatherDesc == null ? null : fatherDesc.trim();
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks == null ? null : remarks.trim();
	}

	public Date getCtime() {
		return ctime;
	}

	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}

	public Date getMtime() {
		return mtime;
	}

	public void setMtime(Date mtime) {
		this.mtime = mtime;
	}

	public String getStr1() {
		return str1;
	}

	public void setStr1(String str1) {
		this.str1 = str1 == null ? null : str1.trim();
	}

	public String getStr2() {
		return str2;
	}

	public void setStr2(String str2) {
		this.str2 = str2 == null ? null : str2.trim();
	}

	public String getStr3() {
		return str3;
	}

	public void setStr3(String str3) {
		this.str3 = str3 == null ? null : str3.trim();
	}

	public String getStr4() {
		return str4;
	}

	public void setStr4(String str4) {
		this.str4 = str4 == null ? null : str4.trim();
	}

	public String getStr5() {
		return str5;
	}

	public void setStr5(String str5) {
		this.str5 = str5 == null ? null : str5.trim();
	}

	@Override
	public String toString() {
		return "UpmsDictionary{" +
				"pkId=" + pkId +
				", code='" + code + '\'' +
				", description='" + description + '\'' +
				", fatherCode='" + fatherCode + '\'' +
				", fatherDesc='" + fatherDesc + '\'' +
				", remarks='" + remarks + '\'' +
				", ctime=" + ctime +
				", mtime=" + mtime +
				", str1='" + str1 + '\'' +
				", str2='" + str2 + '\'' +
				", str3='" + str3 + '\'' +
				", str4='" + str4 + '\'' +
				", str5='" + str5 + '\'' +
				'}';
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;

		UpmsDictionary that = (UpmsDictionary) o;

		if (pkId != null ? !pkId.equals(that.pkId) : that.pkId != null) return false;
		if (code != null ? !code.equals(that.code) : that.code != null) return false;
		if (description != null ? !description.equals(that.description) : that.description != null) return false;
		if (fatherCode != null ? !fatherCode.equals(that.fatherCode) : that.fatherCode != null) return false;
		if (fatherDesc != null ? !fatherDesc.equals(that.fatherDesc) : that.fatherDesc != null) return false;
		if (remarks != null ? !remarks.equals(that.remarks) : that.remarks != null) return false;
		if (ctime != null ? !ctime.equals(that.ctime) : that.ctime != null) return false;
		if (mtime != null ? !mtime.equals(that.mtime) : that.mtime != null) return false;
		if (str1 != null ? !str1.equals(that.str1) : that.str1 != null) return false;
		if (str2 != null ? !str2.equals(that.str2) : that.str2 != null) return false;
		if (str3 != null ? !str3.equals(that.str3) : that.str3 != null) return false;
		if (str4 != null ? !str4.equals(that.str4) : that.str4 != null) return false;
		return str5 != null ? str5.equals(that.str5) : that.str5 == null;
	}

	@Override
	public int hashCode() {
		int result = pkId != null ? pkId.hashCode() : 0;
		result = 31 * result + (code != null ? code.hashCode() : 0);
		result = 31 * result + (description != null ? description.hashCode() : 0);
		result = 31 * result + (fatherCode != null ? fatherCode.hashCode() : 0);
		result = 31 * result + (fatherDesc != null ? fatherDesc.hashCode() : 0);
		result = 31 * result + (remarks != null ? remarks.hashCode() : 0);
		result = 31 * result + (ctime != null ? ctime.hashCode() : 0);
		result = 31 * result + (mtime != null ? mtime.hashCode() : 0);
		result = 31 * result + (str1 != null ? str1.hashCode() : 0);
		result = 31 * result + (str2 != null ? str2.hashCode() : 0);
		result = 31 * result + (str3 != null ? str3.hashCode() : 0);
		result = 31 * result + (str4 != null ? str4.hashCode() : 0);
		result = 31 * result + (str5 != null ? str5.hashCode() : 0);
		return result;
	}
}